const express = require('express')
const app = express()

app.get('/', (req, res) => {
    throw new Error()
})
app.use((err, req, res, next) => {
    console.log('报出异常：' + err.message);
    next()
})
app.listen(11, () => {
    console.log('express running is running at http://127.0.0.1:11');
})